<template>
  <button @click="sendMsg()">发送消息</button>
</template>

<script>
export default {
  data() {
    return {
      msg: "A组件的消息",
      // 测试 gitee 提交 测试
    };
  },
  methods: {
    sendMsg() {
      this.$EventBus.$emit("aMsg", "来自A页面的消息");
    },
  },
  created() {
    console.log(this.$parent.msg)
  },
};
</script>
